<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title><?php echo (C("sitename")); ?></title>

<link href="__PUBLIC__/dwz/themes/default/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/dwz/themes/css/core.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="__PUBLIC__/dwz/themes/css/ieHack.css" rel="stylesheet" type="text/css" />
<![endif]-->

<script src="__PUBLIC__/dwz/js/speedup.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/jquery.cookie.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/jquery.validate.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/jquery.bgiframe.js" type="text/javascript"></script>
<script src="__PUBLIC__/xheditor/xheditor-1.1.9-zh-cn.min.js" type="text/javascript"></script>

<script src="__PUBLIC__/dwz/js/dwz.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>

<script type="text/javascript">
function fleshVerify(){
	//重载验证码
	$('#verifyImg').attr("src", '__APP__/Public/verify/'+new Date().getTime());
}
function dialogAjaxMenu(json){
	dialogAjaxDone(json);
	if (json.statusCode == DWZ.statusCode.ok){
		$("#sidebar").loadUrl("__APP__/Public/menu");
	}
}
function navTabAjaxMenu(json){
	navTabAjaxDone(json);
	if (json.statusCode == DWZ.statusCode.ok){
		$("#sidebar").loadUrl("__APP__/Public/menu");
	}
}
$(function(){
	DWZ.init("__PUBLIC__/dwz/dwz.frag.xml", {
		loginUrl:"__APP__/Public/login_dialog", loginTitle:"登录",	// 弹出登录对话框
//		loginUrl:"__APP__/Public/login",	//跳到登录页面
		statusCode:{ok:1,error:0},
		pageInfo:{pageNum:"pageNum", numPerPage:"numPerPage", orderField:"_order", orderDirection:"_sort"}, //【可选】
		debug:false,	// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"__PUBLIC__/dwz/themes"});
		}
	});
});
//清理浏览器内存,只对IE起效，FF不需要
if ($.browser.msie) {
	window.setInterval("CollectGarbage();", 10000);
}
</script>
</head>

<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<a class="logo" href="__APP__">Logo</a>
				<ul class="nav">
					<li><a href="__APP__/Public/main" target="dialog" width="580" height="360" rel="sysInfo">系统消息</a></li>
					<li><a href="__APP__/Public/password/" target="dialog" mask="true">修改密码</a></li>
					<li><a href="__APP__/Public/profile/" target="dialog" mask="true">修改资料</a></li>
					<li><a href="__APP__/Public/logout/">退出</a></li>
				</ul>
				<ul class="themeList" id="themeList">
					<li theme="default"><div class="selected">蓝色</div></li>
					<li theme="green"><div>绿色</div></li>
					<li theme="purple"><div>紫色</div></li>
					<li theme="silver"><div>银色</div></li>
				</ul>
			</div>
		</div>
		
		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			
			<div id="sidebar">
					
<div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>
<div class="accordion" fillSpace="sideBar">
	<div class="accordionHeader">
		<h2><span>Folder</span>系统管理</h2>
	</div>
	<div class="accordionContent">
	
		<ul class="tree treeFolder">
			<?php if(is_array($menu)): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): ++$i;$mod = ($i % 2 )?><?php if((strtolower($item['name']))  !=  "public"): ?><?php if((strtolower($item['name']))  !=  "index"): ?><?php if(($item['access'])  ==  "1"): ?><li><a href="__APP__/<?php echo ($item['name']); ?>/index/" target="navTab" rel="<?php echo ($item['name']); ?>"><?php echo ($item['title']); ?></a></li><?php endif; ?><?php endif; ?><?php endif; ?><?php endforeach; endif; else: echo "" ;endif; ?>
			<li><a href="__APP__/docman/index/" target="navTab" rel="文档管理">文档管理</a></li>
		</ul>

	</div>
    <div class="accordionHeader">
		<h2><span>Folder</span>文档查看</h2>
	</div>
	<div class="accordionContent accordionContent1">
	
		<ul class="tree treeFolder">
							<li>
							<a href="tabsPage.html" target="navTab">files</a>
								<ul>
								<!--
									<li><a href="main.html" target="navTab" rel="main">a</a></li>
									
									<li>
									<a href="demo/common/ajaxTimeout.html" target="navTab">a9</a>
										<ul>
										
										<li><a href="demo/common/ajaxTimeout.html" target="navTab">a9-1</a></li>
										
										</ul>
									</li>
								
								-->
								
						<?php
							//require_once(__ROOT__.'/apps/test.php');
							echo $dirlist;
						?>
									
								</ul>
							</li>

	</div>
    
	     <div class="contextMenu" id="menu">
      <ul>
        <li id="copy">复制</li>
        <li id="del">删除</li>
        <li id="cut">剪切</li>
        <li id="paste">粘贴</li>
      </ul>
    </div>
	
	<a style ="display:none;" id="nid" href ="#aa" target ="navTab" rel ="page"></a>
	
	
	
	
	<script src="__PUBLIC__/dwz/js/jquery.contextmenu.r2.js" type="text/javascript"></script>
	 <script>
	 
	  function turnoutloading() {
	var ajaxbg = $("#background,#progressBar");
      ajaxbg.hide();
      $(document).ajaxStart(function(){
            ajaxbg.hide();
      }).ajaxStop(function(){
         ajaxbg.hide();
		});
}
	 	 
    //所有class为demo1的span标签都会绑定此右键菜单
     $('.controler').contextMenu('menu', 
     {
          bindings: 
          {
          	'copy': function(e){
//          		alert(e.rel);
          		var path = e.rel;
          		
          		$.ajax({  // ajax传递到function处理课程的开关
				type:'GET',
				cache:false,
				url:'__APP__/Docman/ac',
//				data:{ac:'copy',file:path},
				data:"ac=copy&file="+path,
				dataType:'json',
//				async : false,
				success:function(){
//					alert('复制成功！');
					alert('操作成功');
//					 $("#nid").click();
				},
				error:function(){
					alert('操作失败');
				}
			  })	
          	},
          	
          	'del': function(e){
//          		alert(e.rel);
          		var path = e.rel;
          		
          		$.ajax({  // ajax传递到function处理课程的开关
				type:'GET',
				cache:false,
				url:'__APP__/Docman/ac',
//				data:{ac:'copy',file:path},
				data:"ac=del&file="+path,
				dataType:'json',
//				async : false,
				success:function(){
//					alert('复制成功！');
					alert('操作成功');
					window.location.reload();
//					 $("#nid").click();
				},
				error:function(){
					alert('操作失败');
				}
			  })	
          	},
          	
          	'cut': function(e){
//          		alert(e.rel);
          		var path = e.rel;
          		
          		$.ajax({  // ajax传递到function处理课程的开关
				type:'GET',
				cache:false,
				url:'__APP__/Docman/ac',
//				data:{ac:'copy',file:path},
				data:"ac=cut&file="+path,
				dataType:'json',
//				async : false,
				success:function(){
//					alert('复制成功！');
					alert('操作成功');
//					window.location.reload();
//					 $("#nid").click();
				},
				error:function(){
					alert('操作失败');
				}
			  })	
          	},
          	
          	
          	'paste': function(e){
//          		alert(e.rel);
          		var path = e.rel;
//          		alert(path);
          		var path_arr = path.split('/');
//          		alert(path_arr.length);
          		var num = path_arr.length -1 ;
//          		alert(num);
				var str = path_arr[num];
//				alert(str);
				
				var c_l = path.replace(str, '');
//				alert(c_l);
//          		alert(path_arr[]);
          	
          		
//          		exit();
          		$.ajax({  // ajax传递到function处理课程的开关
				type:'GET',
				cache:false,
				url:'__APP__/Docman/ac',
//				data:{ac:'copy',file:path},
				data:"ac=paste&file="+path+'&c_l='+c_l+'&name='+str,
//				dataType:'json',
//				async : false,
				success:function(){
//					alert('复制成功！');
					alert('操作成功');
					window.location.reload();
//					 $("#nid").click();
				},
				error:function(){
					alert('操作失败');
				}
			  })	
          	},
          	
          }

         
    }
//     window.location.reload();
    );
//     window.location.reload();
	</script>
    
	
</div>





			</div>
		</div>

		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:void(0)"><span><span class="home_icon">我的主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:void(0)">我的主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent">
					<div>
						<div class="accountInfo">
							<div class="alertInfo">
								<h2><a target="_blank" href="<?php echo (C("bbsurl")); ?>/doc/dwz-user-guide.pdf">DWZ框架使用手册(PDF)</a></h2>
								<a href="#" target="_blank">DWZ-thinkphp使用手册</a>
							</div>
							<div class="right">
								<p><?php echo (date('Y-m-d g:i a',time())); ?></p>
							</div>
							<p><span><?php echo (C("sitename")); ?></span></p>
							<p>Welcome, <?php echo ($_SESSION['loginUserName']); ?></p>
						</div>
						<div class="pageFormContent" layoutH="80">
							<p>在线演示地址 <?php echo (C("demourl")); ?></p>
							<p>DWZ框架使用手册 <a href="<?php echo (C("demourl")); ?>/doc/dwz-user-guide.pdf" target="_blank"><?php echo (C("demourl")); ?>/doc/dwz-user-guide.pdf</a></p>
							<p>Ajax开发视频教材 <a href="<?php echo (C("demourl")); ?>/doc/dwz-ajax-develop.swf" target="_blank"><?php echo (C("demourl")); ?>/doc/dwz-ajax-develop.swf</a></p>
							<p>DWZ框架演示视频 <a href="<?php echo (C("demourl")); ?>/doc/dwz-user-guide.swf" target="_blank"><?php echo (C("demourl")); ?>/doc/dwz-user-guide.swf</a></p>
							<p>Google Code下载 <a href="http://code.google.com/p/dwz/" target="_blank">http://code.google.com/p/dwz/</a></p>

<div class="divider"></div>
<h2>dwz_thinkphp版本介绍:</h2>
<pre style="margin: 5px; line-height: 1.4em;">
当前版本dwz_thinkphp v1.0 RC2 (DWZ框架v1.1.6 Final + ThinkPHP2.0)
发布dwz_thinkphp主要是为了方便PHP开发者使用DWZ富客户端UI框架。
其他开发人员也可以结合php后台去理解DWZ和服务器端的交互方式。

DWZ其他版本发布计划
预计2011年第一季度dwz4j (DWZ JAVA框架) 结合UI框架发布一个整体版本。
.NET版本待定。
</pre>
							<div class="divider"></div>
							<h2>有偿服务请联系:</h2>
							<p style="color:red">杜权	msn:duqn@hotmail.com	QQ:8560685</p>

						</div>

					</div>
				</div>
			</div>
		</div>

	</div>
	
	<div id="footer">Copyright &copy; 2010 <a href="http://www.dwzjs.com" target="_blank">dwzjs.com</a></div>


</body>
</html>